package test.redis.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * Created with IntelliJ IDEA.
 *
 * @ project name : xlh_osms
 * @ Author: XuLeHuang
 * @ Date: 2022/5/27 23:53
 * @ Description:
 */
@ConfigurationProperties(
        prefix = "xulehuang.redis" //yml或者properties文件里面属性的前缀，前缀加具体属性名就对应RabbitProperties 的属性名，值自然而然也会取到
)
@Configuration
@Data
public class MyRedisProperties {
    private String hostName;
    private String port;
    private String password;
    private String database;


}

